module lang.d.sts.expressions.dparenizedexpression;

import lang.d.sts.expressions.dexpression;
import lang.d.visitors.dvisitor;

class DParenizedExpression: DExpression {
    private DExpression myExpression;

    public this(DExpression expr) {
        myExpression = expr;
        if (expr !is null) {
            expr.setParent(this);
        }
    }

    public DExpression getExpression() {
        return myExpression;
    }

    override public void accept(DVisitor visitor) {
        visitor.visitParenizedExpression(this);
    }
}

